package com.gtallinone.client;

import com.google.gwt.user.client.ui.TabPanel;
import com.google.gwt.user.client.ui.VerticalPanel;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.Image;
import com.google.gwt.user.client.ui.StackPanel;
import com.google.gwt.user.client.ui.HorizontalSplitPanel;
import com.google.gwt.user.client.ui.Widget;
import com.google.gwt.widget.client.TextButton;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.VerticalSplitPanel;
import com.google.gwt.user.client.ui.DecoratedTabPanel;
import com.google.gwt.user.client.ui.ScrollPanel;
import com.google.gwt.user.client.ui.SplitLayoutPanel;
import com.google.gwt.user.client.ui.DockPanel;

public class AppPanel extends VerticalPanel {
	
	private static TabPanel tabPanel;
	
	public AppPanel() {
		getElement().setId("Application");
		setSize("100%", "100%");
		Label title = new Label("GT All In One");
		title.addStyleName("appTitle");
		
		tabPanel = new TabPanel();
		tabPanel.setSize("100%", "100%");

		//Campus Map Panel
		MapPanel mp = new MapPanel();
		tabPanel.add(mp, "Campus Map", false);


		//Job Opportunity Panel
		JobPanel jp = new JobPanel();
		tabPanel.add(jp, "Job Opportunity", false);
		
		//Philanthropy Panel
		PhiloPanel pp = new PhiloPanel();
		tabPanel.add(pp, "Philanthropy", false);
		
		//Other Resources Panel
		OtherPanel op = new OtherPanel();
		tabPanel.add(op, "Other Resources", false);
		
		tabPanel.selectTab(0);
		add(title);
		add(tabPanel);
		
	}

	public static void addTab(Widget w, String title){
		tabPanel.add(w, title, false);
	}
	
	public static void removeTab(Widget w){
		tabPanel.remove(w);
	}
}
